//
//  UILabel+Extension.swift
//  GWCDriver
//
//  Created by Apple on 2017/5/10.
//  Copyright © 2017年 The_X. All rights reserved.
//

import UIKit

extension UILabel {

    convenience init(es_string: String?, font: CGFloat = 14, color: UIColor = UIColor.gray, alignment: NSTextAlignment = .left) {
    
        self.init()
        
        if let string = es_string {
            
            self.text = string
        }
        
        self.textColor = color
        self.font = UIFont.systemFont(ofSize: font)
        self.textAlignment = alignment
        self.numberOfLines = 0
        
        self.sizeToFit()
    }
}


